﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Projectmanagement.Utl;
using Projectmanagement.Entity;

namespace Projectmanagement.Models
{
    public class _Customer : EntityBase
    {
        [Display(Name = "酒店名称"), Required]
        public string CustomerName { get; set; }
        [Display(Name = "联系人名字"), Required]
        public string ContactName { get; set; }
        [Display(Name = "联系人座机")]
        public string ContactPlane { get; set; }
        [Display(Name = "联系人手机")]
        public int? ContactMobile { get; set; }
        [Display(Name = "联系人Email")]
        public string ContactEmail { get; set; }
        [Display(Name = "title")]
        public string ContactTitle { get; set; }
        [Display(Name = "上级名字")]
        public string SuperiorName { get; set; }
        [Display(Name = "上级title")]
        public string SuperiorTitle { get; set; }
        [Display(Name = "管理集团")]
        public string ManagerialBody { get; set; }
        [Display(Name = "星级")]
        public string StarLevel { get; set; }
        [Display(Name = "国家"), Required]
        public int? Country { get; set; }

        public IEnumerable<SelectListItem> GetCountrySelectListItems()
        {
            var selectList = CH.DB.Countrys.ToList().Select(a => new SelectListItem
            {
                Text = a.Name,
                Value = a.ID.ToString()
            });
            return selectList;
        }

        [Display(Name = "城市"), Required]
        public int? City { get; set; }

        
        public IEnumerable<SelectListItem> GetCitySelectListItems(string country)
        {
            int id; int.TryParse(country, out id);
            var selectList = CH.DB.Citys.Where(x => x.CountryID == id).ToList().Select(a => new SelectListItem
            {
                Text = a.Name,
                Value = a.ID.ToString()
            });
            return selectList;
        }

        [Display(Name = "酒店地址")]
        public string CustomerAddress { get; set; }
        [Display(Name = "行政区")]
        public string AdministrativeRegion { get; set; }
        [Display(Name = "建造时间")]
        public DateTime DescCreatedDate { get; set; }
        [Display(Name = "装修时间")]
        public DateTime DescUpdateDate { get; set; }
        [Display(Name = "音响设备")]
        public string DescSoundEquipment { get; set; }
        [Display(Name = "投影幕布")]
        public string DescJK { get; set; }
        [Display(Name = "设备匹配程度")]
        public string DescDegree { get; set; }
        [Display(Name = "房间数量")]
        public int? RoomCount { get; set; }

        [Display(Name = "会场到市中心")]
        public string LocationCityDistance { get; set; }
        [Display(Name = "会场到飞机场")]
        public string LocationAirportDistance { get; set; }
        [Display(Name = "会场到火车站")]
        public string LocationStationDistance { get; set; }
        [Display(Name = "会场到地铁站")]
        public string LocationSubwayDistance { get; set; }
        [Display(Name = "会议厅格局")]
        public string ChamberStructure { get; set; }
        [Display(Name = "楼层和数量")]
        public int? ChamberFloorQuantity { get; set; }
        [Display(Name = "舞台描述")]
        public string ChamberDesc { get; set; }
        [Display(Name = "层高")]
        public string ChamberStorey { get; set; }
        [Display(Name = "会议厅大小")]
        public string ChamberSize { get; set; }
        [Display(Name = "休息区的面积")]
        public string ChamberArea { get; set; }
        [Display(Name = "市场价")]
        public string QuoteMeetPrice { get; set; }
        [Display(Name = "市场价说明")]
        public string QuoteMeetPriceDesc { get; set; }

        //[Display(Name = "最后参考价")]
        //public string QuoteMeetFial { get; set; }
        [Display(Name = "参考价")]
        public string QuoteMeetFial { get; set; }
        //[Display(Name = "最后参考价说明")]
        //public string QuoteMeetDesc { get; set; }
        [Display(Name = "说明")]
        public string QuoteMeetDesc { get; set; }
        [Display(Name = "人数午餐费说明")]
        public string QuoteMeetGarantDesc { get; set; }
        [Display(Name = "人数")]
        public int? QuoteMeetPeople { get; set; }
        //[Display(Name = "场租市场价")]
        //public string QuoteRoomPrice { get; set; }
        [Display(Name = "市场价")]
        public string QuoteRoomPrice { get; set; }
        [Display(Name = "场租市场价说明")]
        public string QuoteRoomPriceDesc { get; set; }

        //[Display(Name = "场租参考价")]
        //public string QuoteRoomFinal { get; set; }
        [Display(Name = "参考价")]
        public string QuoteRoomFinal { get; set; }
        //[Display(Name = "场租参考价说明")]
        //public string QuoteRoomDesc { get; set; }
        [Display(Name = "说明")]
        public string QuoteRoomDesc { get; set; }
        //[Display(Name = "午餐市场价")]
        //public string QuoteLunchPrice { get; set; }
        [Display(Name = "市场价")]
        public string QuoteLunchPrice { get; set; }
        [Display(Name = "午餐市场价说明")]
        public string QuoteLunchPriceDesc { get; set; }
        [Display(Name = "餐厅最大就餐人数")]
        public string QuoteLunchMaxPeople { get; set; }


        //[Display(Name = "午餐参考价")]
        //public string QuoteLunchFinal { get; set; }
        [Display(Name = "参考价")]
        public string QuoteLunchFinal { get; set; }
        //[Display(Name = "午餐参考价说明")]
        //public string QuoteLunchDesc { get; set; }
        [Display(Name = "说明")]
        public string QuoteLunchDesc { get; set; }
        //[Display(Name = "茶歇市场价")]
        //public string QuoteTeaPrice { get; set; }
        [Display(Name = "市场价")]
        public string QuoteTeaPrice { get; set; }
        [Display(Name = "茶歇市场价说明")]
        public string QuoteTeaPriceDesc { get; set; }



        //[Display(Name = "茶歇参考价")]
        //public string QuoteTeaFinal { get; set; }
        [Display(Name = "参考价")]
        public string QuoteTeaFinal { get; set; }
        //[Display(Name = "茶歇参考价说明")]
        //public string QuoteTeaDesc { get; set; }
        [Display(Name = "说明")]
        public string QuoteTeaDesc { get; set; }
        //[Display(Name = "标准大床房")]
        [Display(Name = "标准房")]
        public string RoomStane { get; set; }
        [Display(Name = "大床房")]
        public string RoomLarge { get; set; }
        //[Display(Name = "行政楼层")]
        [Display(Name = "行政标准间")]
        public string RoomAdmin { get; set; }
        [Display(Name = "行政大床房")]
        public string RoomAdminLarge { get; set; }
        [Display(Name = "套房")]
        public string RoomSuite { get; set; }
        [Display(Name = "返佣百分比")]
        public string RoomPercent { get; set; }

        //[Display(Name = "房型市场价")]
        //public string RoomPrice { get; set; }
        [Display(Name = "市场价")]
        public string RoomPrice { get; set; }
        [Display(Name = "房型市场价说明")]
        public string RoomDesc { get; set; }
        //[Display(Name = "房型参考价")]
        //public string RoomFinalPrice { get; set; }
        [Display(Name = "参考价")]
        public string RoomFinalPrice { get; set; }
        //[Display(Name = "房型参考价说明")]
        //public string RoomFinalPriceDesc { get; set; }
        [Display(Name = "说明")]
        public string RoomFinalPriceDesc { get; set; }







        [Display(Name = "车型及市场价")]
        public string CarModelPrice { get; set; }
        [Display(Name = "是否往返")]
        public string CarOrNot { get; set; }
        [Display(Name = "目的地")]
        public string CarPlace { get; set; }
        [Display(Name = "鸡尾酒")]
        public string OtherCock { get; set; }
        [Display(Name = "晚宴西餐")]
        public string OtherWesternFood { get; set; }
        [Display(Name = "晚宴中餐")]
        public string OtherCenterFood { get; set; }
        [Display(Name = "其他")]
        public string OtherNote { get; set; }
        [Display(Name = "性价比")]
        public string CommentCost { get; set; }
        [Display(Name = "优点")]
        public string CommentVirtue { get; set; }
        [Display(Name = "缺点")]
        public string CommentDefect { get; set; }
        [Display(Name = "推荐会议类型（六大类）")]
        public string CommentCate { get; set; }
        [Display(Name = "柱子描述")]
        public string PostDesc { get; set; }
        [Display(Name = "分割描述")]
        public string ChamberStructureDesc { get; set; }

        [Display(Name = "上传文件")]
        public string CustomerFileId { get; set; }
    }
}